#include <stdio.h>
#include <string.h>

int is_left_reverse(char s1[],char s2[])
{
    if(strstr(s1,s2)!=NULL)
        return 1;
    return 0;
}

int main(void)
{
    char s1[]="AABCD";
    char s2[]="BCDAA";
    strcat(s1,s1);
    int ret = is_left_reverse(s1,s2);
    if(ret==1)
        printf("yes\n");
    else
        printf("No\n");
    return 0;
}
